package org.sbbs.app.demo.dao.hibernate;

import java.util.Collection;

import org.sbbs.app.demo.model.DemoSysDbLog;
import org.sbbs.app.demo.dao.DemoSysDbLogDao;
import org.sbbs.base.dao.hibernate.BaseDaoHibernate;
import org.springframework.stereotype.Repository;

@Repository("demoSysDbLogDao")
public class DemoSysDbLogDaoHibernate extends BaseDaoHibernate<DemoSysDbLog, Long> implements DemoSysDbLogDao {

    public DemoSysDbLogDaoHibernate() {
        super(DemoSysDbLog.class);
    }

    @Override
    public void rewriteLogToDb( Collection<DemoSysDbLog> logs ) {
       this.getHibernateTemplate().saveOrUpdateAll( logs );
        
    }
}
